package user;

import book.BookList;
import operation.Ioperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-05-24
 * 21:37
 */
public abstract class User {
    protected String name;

    public  Ioperation[] ioperations;

    public User(String name) {
        this.name = name;
    }

    public  int menu() {
        return 0;
    }

   public void dowork(int choice, BookList bookList){
         ioperations[choice].work(bookList);
   }

}
